package com.kede.dao;

import com.kede.entity.Ctrain;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 【请填写作者】
 * @since 2020-04-16
 */
@Repository
public interface CtrainDao extends BaseMapper<Ctrain> {
    @Update("UPDATE `release` SET `status` = '删除' WHERE id = #{id}")
    int deleteCtrainById(@Param("id") Integer id);
}
